<div>
  <div class="modal-card">
    <label>
      <span>角色名称</span>
    </label>
    <input type="text" dTextInput class="form-input-box" name="PostRole" [(ngModel)]="PostRole.name">
  </div>
  <div class="modal-card">
    <label>
    </label>
    <div class="invalid" *ngIf="data.display&&!PostRole.name">*值不能为空</div>
  </div>
  <div class="modal-card mt-3">
    <label>
      <span>是否启用</span>
    </label>
    <d-toggle [(ngModel)]="enable"  (change)="valueChange($event)"></d-toggle>
  </div>
</div>
